import { createPinia } from 'pinia';
import useAppStore from './modules/app';
import useUserStore from './modules/user';
import useTabBarStore from './modules/tab-bar';
import useCityStore from './modules/public-data';

const pinia = createPinia();
pinia.use(({ store }) => {
    if (store.$id === 'city') {
      store.initialize();
    }
  });

export { useAppStore, useUserStore, useTabBarStore,useCityStore };
export default pinia;
